package com.jintoufs.dao.hotel;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.hotel.HotelRoom;

import java.util.List;
import java.util.Map;

public interface HotelRoomMapper {
    int deleteByPrimaryKey(String id);

    int insert(HotelRoom record);

    int insertSelective(HotelRoom record);

    HotelRoom selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HotelRoom record);

    int updateByPrimaryKey(HotelRoom record);

    /**
     * 根基参查询
     * 小程序端获取列表
     */
    List<Map<String,Object>> queryByParams(Map<String, Object> params);

    List<Map<String,Object>> queryPriceByParams(Map<String, Object> params);


    /**
     * 根基参查询
     * 用于基础信息查询
     */
    List<Map<String,Object>> selectByParams(Map<String, Object> params);

    /**
     * 根据条件查询
     *
     * @param filters 属性列表，过滤存在的属性值
     */
    List<Map<String,Object>> getByFilter(QueryFilters filters);
}